package com.cat.mediator;

/**
 * @author cat
 * @version 2025/5/27 19:29
 * @description
 * @since JDK17
 */

public class Client {
    public static void main(String[] args) {
        MediatorStructure mediatorStructure = new MediatorStructure();

        // 创建租房者
        Tenant tenant = new Tenant("jcjc", mediatorStructure);
        // 创建房主
        HouseOwner houseOwner = new HouseOwner("ynyn", mediatorStructure);

        mediatorStructure.setTenant(tenant);
        mediatorStructure.setHouseOwner(houseOwner);

        tenant.contact("manba out");
        houseOwner.contact("what can i say");

    }
}
